package cn.pkubangbang.demo.democontact.entity;

import java.util.Objects;

/**
 * @Author: zhangzhenbang@k2data.com.cn
 * @Date: 2018-08-24 15:44
 */
public class Parameter {

    private String name;
    private String desc;
    private String eg;

    public Parameter() {
    }

    public Parameter(String name, String desc, String eg) {

        this.name = name;
        this.desc = desc;
        this.eg = eg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getEg() {
        return eg;
    }

    public void setEg(String eg) {
        this.eg = eg;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Parameter parameter = (Parameter) o;
        return Objects.equals(getName(), parameter.getName());
    }

    @Override
    public int hashCode() {

        return Objects.hash(getName());
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Parameter{");
        sb.append("name='").append(name).append('\'');
        sb.append(", desc='").append(desc).append('\'');
        sb.append(", eg='").append(eg).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
